package org.jeecg.modules.supplier.service.impl;

import org.jeecg.modules.supplier.Vo.SupplierQualificationVO;
import org.jeecg.modules.supplier.dto.SupplierQualificationSearchRequest;
import org.jeecg.modules.supplier.mapper.SupplierQualificationMapper;
import org.jeecg.modules.supplier.service.SupplierQualificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplierQualificationServiceImpl implements SupplierQualificationService {

    @Autowired
    private SupplierQualificationMapper supplierQualificationMapper;

    @Override
    public List<SupplierQualificationVO> querySuppliersWithQualifications(SupplierQualificationSearchRequest query) {
        return supplierQualificationMapper.selectSupplierWithQualifications(query != null ? query : new SupplierQualificationSearchRequest());
    }
}
